﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinUserAcc
{
    public partial class frmInputAccount : Form
    {
        public string inputName;
        public frmInputAccount(string sameAccount)
        {
            InitializeComponent();
            lblAccount.Text = sameAccount;  
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            if (lblAccount.Text == txtNewAccount.Text.Trim())
            {
                MessageBox.Show("依然相同!");
                return;
            }
            inputName = txtNewAccount.Text.Trim();
            this.Close();
        }

        private void btnCancle_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
